package com.vhall.component.framework.oss.client;

import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.io.InputStream;

/**
 * 对象存储接口
 *
 * @author yongzheng.xu
 * @date 2021/5/22 20:41
 */
public interface OssClient {

    OssResult<String> upload(String name, String contentType, InputStream stream);

    OssResult<String> upload(MultipartFile file);

    OssResult<String> upload(File file);
}
